import request from '@/utils/request'

// 查询教师实验课申请登记列表
export function listTea_application(query) {
  return request({
    url: '/jwxt/tea_application/list',
    method: 'get',
    params: query
  })
}

// 查询教师实验课申请登记详细
export function getTea_application(applicationId) {
  return request({
    url: '/jwxt/tea_application/' + applicationId,
    method: 'get'
  })
}

// 新增教师实验课申请登记
export function addTea_application(data) {
  return request({
    url: '/jwxt/tea_application',
    method: 'post',
    data: data
  })
}

// 修改教师实验课申请登记
export function updateTea_application(data) {
  return request({
    url: '/jwxt/tea_application',
    method: 'put',
    data: data
  })
}

// 删除教师实验课申请登记
export function delTea_application(applicationId) {
  return request({
    url: '/jwxt/tea_application/' + applicationId,
    method: 'delete'
  })
}

// 驳回教师实验课申请登记
export function reject_application(applicationId) {
  return request({
    url: '/jwxt/tea_application/reject/',
    method: 'post',
    data:applicationId
  })
}
// 通过教师实验课申请登记
export function pass_application(application) {
  return request({
    url: '/jwxt/tea_application/pass',
    method: 'post',
    data:application
    //TODO 记得新增一个排课
  })
}
// 获取所有的合法实验室
export function get_validate_labs(application) {
  return request({
    url: '/jwxt/tea_application/get_validate_labs',
    method: 'post',
    data:application
  })
}


